package com.soboot.base.model;

import lombok.Data;

import java.util.List;

/**
 * @Author:
 * @createTime: 2023年01月05日 15:58:52
 * @version:
 * @Description:
 * @Copyright:
 */
@Data
public class BasePageRes<T> extends BaseExtEntity{

    private static final long serialVersionUID = 1L;

    private Integer pageNum;
    private Integer pageSize;
    private Integer total;
    private List<T> data;

    public BasePageRes(Long pageNum, Long pageSize, Long total, List<T> data) {
        this.pageNum = pageNum.intValue();
        this.pageSize = pageSize.intValue();
        this.total = total.intValue();
        this.data = data;
    }
}
